/*** 订单配置Action
* */
import { Action } from '@ngrx/store';

export const RESET_ORDER_STORE= 'RESET_ORDER_STORE'; // 重置
export const GET_USER_ORDERS_SUCCESS= 'GET_USER_ORDERS_SUCCESS'; // 获取借款成功
export const GET_USER_ORDERS_FAILED= 'GET_USER_ORDERS_FAILED'; // 获取借款失败

export class ResetOrderStoreAction implements Action {
  readonly type= RESET_ORDER_STORE;
}

export class GetUserOrdersSuccessAction implements Action {
  readonly type= GET_USER_ORDERS_SUCCESS;
  constructor(public payload: any) {}
}

export class GetUserOrdersFailedAction implements Action {
  readonly type= GET_USER_ORDERS_FAILED;
}
export type All= ResetOrderStoreAction | GetUserOrdersSuccessAction | GetUserOrdersFailedAction;
